import { request } from 'utils/request'
// 详情页商品信息
export const getGoodsInfo = (shopId) => {
  return request({
    url: `/item/${shopId}`,
    method: 'get'
  })
}
// 添加购物车
export const addCart = (skuId, skuNum) => {
  return request({
    url: `/cart/addToCart/${skuId}/${skuNum}`,
    method: 'post'
  })
}
